package vg.services.graph_view_manager.realization.graph_comparison.algorithm;

/**
 * Solution.
 *
 * @author Timur Zolotuhin (e-mail: tzolotuhin@gmail.com)
 */
public class Solution {
	private BiGraphEdge[] edges;
	
	public Solution(BiGraphEdge[] edges) {
		this.edges = edges;
	}
	
	public BiGraphEdge[] getEdges() {
		return edges;
	}
	
	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("[");
		for (BiGraphEdge edge : edges) {
			if (edge == null) {
				str.append("null ");
			} else {
				str.append(edge.toString());
				str.append(" ");
			}
		}
		str.append("]");
		return str.toString();
	}
}
